Dynomotion

Group: DynoMotion Message: 3773 From: bradodarb Date: 2/6/2012
Subject: Error Messages
Hello Tom,


I was hoping you might have a definitive list of messages that will get pumped through the new ErrorMsgCallback.

In .net the preferred method of handling errors is by throwing exceptions.

If I know what kind of messages to expect, I can add different types of exceptions that the end user programs can handle appropriately.



The situation I am trying to avoid is that everyone will have this ErrorReceived event handler that has the message(string) then people will have some sort of switch statement or if tree to parse out the particular error.

It will be much cleaner to handle this type of error discovery within the API via the aforementioned exceptions rather than everyone needing to implement their own.


Of course they will still be able to subscribe to the error text as well....

Thanks,

-Brad Murry
Group: DynoMotion Message: 3774 From: Tom Kerekes Date: 2/6/2012
Subject: Re: Error Messages
Sounds like a great idea.  I'm busy merging your changes.  If you wouldn't mind searching for them yourself. 
 
Some are generated by the KMotionServer by calls to CKMotionIO then Piped back
 
see    ErrorMessageBox
 
and others are created within CKMotionDLL
 
see  DoErrMsg
 
They all get routed to the same Handler
 
Thanks
TK
 

Group: DynoMotion Message: 3775 From: Brad Murry Date: 2/6/2012
Subject: Re: Error Messages

Hello Tom,

 

Sounds good to me.  If those are the only two signatures to look for I think I can make quick work of it.

 

-Brad Murry

 

From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
Sent: Tuesday, February 07, 2012 12:31 AM
To: DynoMotion@yahoogroups.com
Subject: Re: [DynoMotion] Error Messages

 

 

Sounds like a great idea.  I'm busy merging your changes.  If you wouldn't mind searching for them yourself. 

 

Some are generated by the KMotionServer by calls to CKMotionIO then Piped back

 

see    ErrorMessageBox

 

and others are created within CKMotionDLL

 

see  DoErrMsg

 

They all get routed to the same Handler

 

Thanks

TK

 

 

From: bradodarb <bradodarb@...>
To: DynoMotion@yahoogroups.com
Sent: Monday, February 6, 2012 11:08 PM
Subject: [DynoMotion] Error Messages

 

 

Hello Tom,

I was hoping you might have a definitive list of messages that will get pumped through the new ErrorMsgCallback.

In .net the preferred method of handling errors is by throwing exceptions.

If I know what kind of messages to expect, I can add different types of exceptions that the end user programs can handle appropriately.

The situation I am trying to avoid is that everyone will have this ErrorReceived event handler that has the message(string) then people will have some sort of switch statement or if tree to parse out the particular error.

It will be much cleaner to handle this type of error discovery within the API via the aforementioned exceptions rather than everyone needing to implement their own.

Of course they will still be able to subscribe to the error text as well....

Thanks,

-Brad Murry

 

Group: DynoMotion Message: 3776 From: Tom Kerekes Date: 2/7/2012
Subject: Re: Error Messages
Yes every message should go through one of those two calls.